package com.hzw.saas.service.ds.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzw.saas.api.ds.enums.ClientTypeEnum;
import com.hzw.saas.common.config.model.BaseLogicModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
    * 心跳-日志表
    */
@ApiModel(value="心跳-日志表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "tb_heartbeat_log")
public class HeartbeatLog extends BaseLogicModel {
    private static final long serialVersionUID = 2705307307856539582L;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id")
    private String userId;

    /**
     * 客户端类型 ds:Device Studio
     */
    @TableField(value = "client_type")
    @ApiModelProperty(value="客户端类型 ds:Device Studio")
    private ClientTypeEnum clientType;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    @ApiModelProperty(value="设备名称")
    private String deviceName;

    /**
     * mac地址
     */
    @TableField(value = "mac")
    @ApiModelProperty(value="mac地址")
    private String mac;

    /**
     * ip地址
     */
    @TableField(value = "ip")
    @ApiModelProperty(value="ip地址")
    private String ip;

    /**
     * 一次完整心跳的开始log_pid
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="一次完整心跳的开始log_pid")
    private String parentId;
}